package com.xrit.sunnyday.service;

import com.xrit.sunnyday.exception.SunnydayException;
import com.xrit.sunnyday.pojo.OrderSetting;

import java.util.List;
import java.util.Map;

public interface OrderSettingService {
    /**
     * 批量导入
     * @param orderSettingList
     */
    void add(List<OrderSetting> orderSettingList) throws SunnydayException;

    /**
     * 根据日期查询预约设置数据
     */
    List<Map<String, Integer>> getOrderSettingByMonth(String month); //参数格式为：2019-03

    /**
     * 通过日期修改可预约人数，这里要抛出自定义的异常
     */
    void editNumberByDate(OrderSetting orderSetting) throws SunnydayException;

}
